# 淘宝自动回复功能
import json
def readtxt ():
    lst =[]
    lst2 =[]
    with open('./aw.txt', 'r', encoding='utf-8') as f:
        lines = f.readlines()
        for line in lines:
            r = line.split('｜')
            lst.append(r[0])
            lst2.append(r[1])
        zips = dict(zip(lst, lst2))
        return zips

def awhandle (txt) :
    m = readtxt()
    try :
        if m[txt] :
            print(m[txt])
    except :
        print('未找到相关信息，请联系客服')


if __name__ == '__main__':
    readtxt()
    while True:
        txt = input('请输入要查询的事件关健字：')
        if(txt == '0') :
            break
        else :
            awhandle(txt)
